package org.example;

import org.example.Interface.service.OrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.concurrent.CountDownLatch;

public class MainConsumer {
    public static void main(String[] args) throws InterruptedException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("dubbo-demo-consumer.xml");
        OrderService orderService = context.getBean(OrderService.class);
        System.out.println(orderService.initOrder("1"));

        new CountDownLatch(1).await();


    }
}

